import request from "@/utils/request";

// 查询运输计划表列表
export function listPlan(query) {
  return request({
    url: "/pack/plan/list",
    method: "get",
    params: query,
  });
}

// 查询运输计划表详细
export function getPlan(id) {
  return request({
    url: "/pack/plan/" + id,
    method: "get",
  });
}

// 新增运输计划表
export function addPlan(data) {
  return request({
    url: "/pack/plan",
    method: "post",
    data: data,
  });
}

// 修改运输计划表
export function updatePlan(data) {
  return request({
    url: "/pack/plan",
    method: "put",
    data: data,
  });
}

// 删除运输计划表
export function delPlan(id) {
  return request({
    url: "/pack/plan/" + id,
    method: "delete",
  });
}
